package com.zx.dao;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @ProjectName: myjdbc
 * @Package: com.zx.dto
 * @ClassName: Configuration
 * @Author: 1
 * @Description: 核心配置文件
 * @Date: 2021/9/7 18:39
 */
public class Configuration {

    //数据库
    private DataSource dataSource;

    /*
     *   key: statementid  value:封装好的mappedStatement对象
     * */
    Map<String, MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
